Skip to content

Instantly share code, notes, and snippets.

@rohitg00
rohitg00 / llm-wiki.md
Last active October 7, 2026 01:31 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory 20K+ Stars ⭐️, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@k16shikano
k16shikano / SKILL.md
Last active October 7, 2026 01:21
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、翻訳調の比喩と擬人化の禁止(「運ぶ」「効く」「開かれた問い」など)、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。
license Unlicense(https://gist.github.com/k16shikano/67625f2a7d96e3bbdfae8d571a936063)

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

@ChrisPenner
ChrisPenner / Battleship.lhs
Last active October 7, 2026 01:06
Hit! You sunk my Adjunction!
Today we'll be looking into Kmett's
[adjunctions](http://hackage.haskell.org/package/adjunctions) library,
particularly the meat of the library in Data.Functor.Adjunction.
This post is a literate haskell file, which means you can load it right up in
ghci and play around with it! Like any good haskell file we need half a dozen
language pragmas and imports before we get started.
> {-# language DeriveFunctor #-}
> {-# language TypeFamilies #-}
@ryanturcotte
ryanturcotte / visualping-microcenter.txt
Created October 7, 2026 00:51
Using Visualping to check Micro Center store listings
1. Create an account at visualping.io and go to the jobs page.
2. Go to Micro Center's site and do a search you want to track. For example, this is a link to 4K OLED monitors within a certain size:
https://www.microcenter.com/search/search_results.aspx?fq=Screen+Size_Computer+Monitors:30%22+to+32%22+OR+33%22+and+greater,Subcategory:4K+UHD,Average_Rating:5+Stars+OR+4+Stars,Panel+Type:QD-OLED+OR+OLED&sortby=pricelow
3. In visualping, click Start monitoring and enter in the URL for your search at the top. Click Go.
4. Visualping will do an initial page load but the items found will not match your store.
5. Set the storeSelected cookie by:
a. click Actions at bottom right
b. click Add Action
c. click into selctor of first drop down and find Cookie

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

// ==UserScript==
// @name Medinet Tools - Nhập CLS + Điền nhanh
// @namespace https://github.com/hoangdinhreborn
// @version 1.3.1
// @description Nhập CLS tự động từ CSV + điền nhanh form Tiền sử, Hỏi bệnh, Lâm sàng, Cận lâm sàng
// @author hoangdinhreborn
// @homepageURL https://gist.github.com/hoangdinhreborn/32dc3479d83b93af88bafe23f5c91363
// @updateURL https://gist.githubusercontent.com/hoangdinhreborn/32dc3479d83b93af88bafe23f5c91363/raw/medinet-dien-nhanh.user.js
// @downloadURL https://gist.githubusercontent.com/hoangdinhreborn/32dc3479d83b93af88bafe23f5c91363/raw/medinet-dien-nhanh.user.js
// @match https://quanlyskcd.medinet.org.vn/*
@ray2201
ray2201 / difficulty_reasoning_raw.csv
Last active October 7, 2026 00:48
5.6 Sol reasoning effort benchmark raw
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 20 columns, instead of 10 in line 8.
call_number,model,effort,constraint_count,task_index,expected,answer,parsed_answer,numeric_correct,exact_success,input_tokens,cached_input_tokens,reasoning_tokens,visible_output_tokens,output_tokens,total_tokens,latency_ms,estimated_cost_usd,moduli,error
1,gpt-5.6-sol,medium,5,10,8834,8834,8834,True,True,75,0,377,8,385,460,7816.7,0.008,"7,11,13,17,19",
2,gpt-5.6-sol,low,6,3,221110,221110,221110,True,True,83,0,291,8,299,382,6827.2,0.006312,"7,11,13,17,19,23",
3,gpt-5.6-sol,medium,3,10,556,556,556,True,True,59,0,125,7,132,191,3569.9,0.002876,"7,11,13",
4,gpt-5.6-sol,medium,6,9,404284,404284,404284,True,True,83,0,388,8,396,479,7550.4,0.008252,"7,11,13,17,19,23",
5,gpt-5.6-sol,low,6,1,307694,307694,307694,True,True,83,0,426,8,434,517,8457.7,0.009012,"7,11,13,17,19,23",
6,gpt-5.6-sol,medium,4,2,5770,5770,5770,True,True,67,0,291,8,299,366,5869.4,0.006248,"7,11,13,17",
7,gpt-5.6-sol,low,4,5,6458,6458,6458,True,True,67,0,168,8,176,243,4863.9,0.003788,"7,11,13,17",
8,gpt-5.6-sol,high,6,4,3812732,3812732,3812732,True,T
@minimaxir
minimaxir / ur-prompt.md
Last active October 7, 2026 00:48
ur-prompt-20260919

Optimize the Rust and Python bindings in this Rust crate to its maximum potential. Specifically, you MUST make a breakthrough from this current implementation that uses modern concepts and knowledge as of 2026 to further improve this crate without causing ANY significant regressions.

First, before making any library changes, run the Rust and Python benchmarks (and any competitor benchmarks if applicable) to establish a True Performance Baseline for both speed and metric performance. Return the absolute and relative results to the True Performance Baseline to the user as a Markdown table.

Then, optimize the Rust and Python library code such that these benchmarks are atleast 1.2x faster from the True Performance Baseline; ideally as fast as possible, without any significant regressions on quality and prediction error. NEVER hack the benchmarks to accomplish this speed increase, only iterate on the library code. Ensure all benchmark iterations are independent, e.g. NEVER reuse a cache built in

@paulirish
paulirish / what-forces-layout.md
Last active October 7, 2026 00:48
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@minimaxir
minimaxir / AGENTS.md
Created September 19, 2026 17:42
Rust AGENTS.md (20260919)

Agent Guidelines for Rust Code Quality

This document provides guidelines for maintaining high-quality Rust code. These rules MUST be followed by all AI coding agents and contributors.

Your Core Principles

All code you write MUST be fully optimized.

"Fully optimized" includes: